<%--                                                                       --%>
<%-- Copyright (c) 2001-2002 BroadVision, Inc.  All rights reserved.       --%>
<%--                                                                       --%>
<%-- This software is copyrighted. Under the copyright laws, this software --%>
<%-- may not be copied, in whole or in part, without prior written consent --%>
<%-- of BroadVision, Inc. or its assignees. This software is provided      --%>
<%-- under the terms of a license between BroadVision and the recipient,   --%>
<%-- and its use is subject to the terms of that license.                  --%>
<%--                                                                       --%>
<%-- This software may be protected by one or more U.S. and International  --%>
<%-- patents.  Certain applications of BroadVision One-To-One software are --%>
<%-- covered by U.S. patent 5,710,887.                                     --%>
<%--                                                                       --%>
<%-- TRADEMARKS: BroadVision and BroadVision One-To-One are registered     --%>
<%-- trademarks of BroadVision, Inc., in the United States and the         --%>
<%-- European Community, and are trademarks of BroadVision, Inc., in other --%>
<%-- countries.  The BroadVision logo, is a trademark of BroadVision,      --%>
<%-- Inc., in the United States and other countries. Additionally, IONA    --%>
<%-- and Orbix are trademarks of IONA Technologies, Ltd.  RSA, MD5, and    --%>
<%-- RC2 are trademarks of RSA Data Security, Inc.                         --%>
<%--                                                                       --%>

<%@ page language="java" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> 
<%@ taglib uri="/WEB-INF/bv-html.tld" prefix="bvhtml" %>

<script language="javascript">
<!--
function openwin(file) {
  var win = window.open(file , "NewWindow", 'toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=450,height=338');
  win.focus();
}

function confirmDeleteAnnouncement(theForm, url) {
   if (confirm("<bean:message key="cs.confirm.delete.announcement"/>")) {
     theForm.action = url;
     theForm.submit();
   }
   else {
     return false;
   }
}

// -->
</script>

<!-- Zone 5 starts here.  -->

<table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" 
         summary="content area">
  <tr>
    <td valign="top">
      
    <!--start microsite logo and name here-->
      <div class="pageTitle">
        <%@ include file="/cs/microsite/micrositeNaviInfo.jsp" %>
      </div> 
    <!--end microsite logo and name here-->
    
    <div class="pageSubtitle">
      <span class="left">        
        <bean:define id="annViewName" name="announcementView" property="name"/>      
	           <%String annName = annViewName.toString();%>
            <bean:message key="cs.view" arg0="<%=annName %>"/> 
      </span>
      <logic:notEqual name="announcementView" property="isReadOnly" value="true"> 
        <span class="right">
          <html:form action="/cs/announcementEdit.do">
          <bvhtml:hiddenList name="micrositeNaviInfoView" property="urlParams" scope="request"/>
            <logic:equal name="announcementView" property="isOwner" value="true">
              <input type="submit" class="titleButton" name="editBtn"
                     value='<bean:message key="button.edit"/>'
                     titleKey="button.edit">
                   
              <input type="button" class="titleButton" name="deleteBtn"
                     value='<bean:message key="button.delete"/>'
                    titleKey="button.delete"
                    onclick="confirmDeleteAnnouncement(this.form, '<html:rewrite page="/cs/announcementDelete.do"/>')">
            </logic:equal>
          </html:form>
        </span>
      </logic:notEqual>
    </div> 
    <!--end page title area here-->
    
    <div class="blockWrap">

<!--start main content area here-->
    <table class="labelForm" width="100%" border="0" cellspacing="0" 
            cellpadding="0" summary="Announcement Information">

      <tr> 
        <td nowrap width="20%" class="label"> 
          <bean:message key="cs.message"/>: 
        </td>
        <td width="80%" class="labelField">
          <bean:write name="announcementView" property="description" />&nbsp;
        </td>
      </tr>
      
    <tr> 
      <td nowrap width="20%" class="label"> 
        <bean:message key="cs.owner"/>: 
      </td>
      <td width="80%" class="labelField">
        <bean:write name="announcementView" property="ownerName" />&nbsp;
      </td>
    </tr>
    <logic:equal name="micrositeNaviInfoView" property="micrositeTemplatePhaseFlag" value="true" >
      <tr>
        <td nowrap width="20%" class="label"><bean:message key="cs.phase"/>:</td>
        <td width="80%" nowrap class="labelField"> <bean:write name="announcementView" property="phaseName" />&nbsp;</td>
      </tr>
    </logic:equal>

    <tr> 
      <td nowrap width="20%" class="label"> 
        <bean:message key="cs.date"/>: 
      </td>
      <td width="80%" nowrap class="labelField">
        <bean:write name="announcementView" property="creationTime" formatKey="format.date.full"/>
      </td>
    </tr>
    </table>

<!-- start of attachments secion -->

     <!-- Attachment list begins. -->
    <bean:define id="beanUsed" name="announcementView" toScope="request" />
    <%@ include file="/cs/microsite/attachment/attachmentView.jsp" %>
    <!-- Attachment list ends. -->
    <!--end main content area here-->

	</div>
<!--end zone 5 content here -->

    </td>
   </tr>
  </table>  